package com.td.module.cooperative.controller.admin.partner.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.td.framework.excel.core.annotations.DictFormat;
import com.td.framework.excel.core.convert.DictConvert;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 合作伙伴 Excel VO
 *
 * @author wangxx
 */
@Data
public class PartnerExcelVO {

    @ExcelProperty("ID")
    private Long id;

    @ExcelProperty("伙伴名称")
    private String partnerName;

    @ExcelProperty(value = "伙伴类型", converter = DictConvert.class)
    @DictFormat("cooperative_partner_partner_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer partnerType;

    @ExcelProperty("伙伴简介")
    private String partnerIntro;

    @ExcelProperty("伙伴图片")
    private String partnerImg;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
